package com.itheima.service;

import com.itheima.common.PageInfo;
import com.itheima.dto.SetmealDishDto;
import com.itheima.dto.SetmealDishDto2;
import com.itheima.vo.PhoneSetmealDishVo;
import com.itheima.vo.PhoneSetmealVo;
import com.itheima.vo.SetmealVo;
import com.itheima.vo.SetmealVo2;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author YangJiaHao
 */
@Transactional
public interface SetmealService {

    PageInfo<SetmealVo> page(String name, Integer page, Integer pageSize);

    Boolean addSetmeal(SetmealDishDto setmealDishDto);

    SetmealVo2 getById(String id);

    Boolean modifySetmeal(SetmealDishDto2 setmealDishDto2);

    Boolean delete(String ids);

    Boolean status(Integer status, String ids);

    List<PhoneSetmealVo> getPhoneSetmealVo(String categoryId, Integer status);

    PhoneSetmealDishVo getPhoneSetmealDish(String id);
}
